# coding = utf-8

from django.urls import path
from rest_framework.routers import DefaultRouter

from .views import GoodsStockViewSet, GoodsTransferViewSet, GoodsTransferDetailViewSet, StockGoodsExportAPIView

router = DefaultRouter()
# 后台
router.register(r'goods_stock', GoodsStockViewSet, basename="api-goods-stock")
router.register(r'goods_transfer', GoodsTransferViewSet, basename="api-goods-transfer")
router.register(r'goods_transfer_detail', GoodsTransferDetailViewSet, basename="api-goods-transfer-detail")


urlpatterns = [
    path('stock_goods_export/', StockGoodsExportAPIView.as_view(), name="api-goods-export"),
]
urlpatterns += router.urls
